﻿/********************************************************************************
** @ Date:2025/07/29
** @ Author: Gaojia
** @ Description:
** @ Version:1.0.0
** @ Fun:
********************************************************************************/
#ifndef CPublicData_H
#define CPublicData_H
#include "dbstruct.h"
const QString g_sTableName = "pbelt_device_info-pbelt_tear_point_config-pbelt_dev_base_config-pbelt_tear_result-pbelt_point_info";
class CPublicData
{
public:
	static CPublicData& instance()
	{
		static CPublicData instance;
		return instance;
	}
public:
	bool initSql();               //初始化数据库
	bool getConfig();             //获取配置文件 
	bool saveConfig();            //保存配置文件
	bool m_bConfig;               //是否加载过配置文件 
	bool m_bSqlInit;              //是否初始化过数据库
	CSqlDllOper *m_pSqlDllOper;   //数据库操作对象
private:
	CPublicData();
	~CPublicData();
	QString m_sConnectInfo; //数据库连接信息
};

#endif